﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OnlyMusic.DomainModel.Services;
using OnlyMusic.DomainModel.Roles;
using OnlyMusic.DomainModel.Entities;

namespace OnlyMusic.DomainModel.Context
{
    public class UploadSongContext
    {
        ISongManagerService songManager = null;
        IUploader uploader = null;
        Song song = null;
        byte[] content = null;

        public UploadSongContext(ISongManagerService songManager, IUploader uploader, Song song, byte[] content)
        {
            this.songManager = songManager;
            this.uploader = uploader;
            this.song = song;
            this.content = content;
        }

        public bool Interaction()
        {
            return songManager.Upload(this.song, this.uploader, this.content);
        }
    }
}
